﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="author" content="ISUX">
    <meta name="format-detection" content="telephone=no" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
    <title>班级信息查询</title>
    <link rel="stylesheet" href="/ViewMob/css/wxui.css">
    <link rel="stylesheet" href="/ViewMob/css/group.css">
    <link href="//at.alicdn.com/t/font_qqztt1cpq09kke29.css" rel="stylesheet" />
    <link href="/ViewMob/js/layer/need/layer.css" rel="stylesheet" />
    <script src="/ViewMob/js/layer/layer.m.js"></script>
    <style>
        .ms-controller, [ms-controller] {
            display: none;
        }

        .page {
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            opacity: 0;
            z-index: 1;
        }

            .page.js_show {
                opacity: 1;
            }

        .page__hd {
            padding: 24px;
            text-align: center;
            background: #4faeff url(../images/bg-account.jpg) 100% 100%;
            color: white;
        }

        .page__bd_spacing {
            padding: 0 15px;
        }

        .page__ft {
            padding-top: 40px;
            padding-bottom: 10px;
            text-align: center;
        }

            .page__ft img {
                height: 19px;
            }

            .page__ft.j_bottom {
                position: absolute;
                bottom: 0;
                left: 0;
                right: 0;
            }

        .page__title {
            text-align: left;
            font-size: 20px;
            font-weight: 400;
        }

        .page__desc {
            margin-top: 5px;
            text-align: left;
            font-size: 14px;
        }

        .page.home .page__intro-icon {
            margin-top: -.2em;
            margin-left: 5px;
            width: 16px;
            height: 16px;
            vertical-align: middle;
        }

        .page.home .page__title {
            font-size: 0;
            margin-bottom: 15px;
        }


        .head-oneself {
            width: 4.5rem;
            height: 4.5rem;
            margin-left: 20px;
        }

            .head-oneself img {
                border: 2px solid rgba(0,0,0,.2);
            }

        .ybl {
            background-color: #10c55b;
            font-size: 30px;
            color: white;
        }

        .wbl {
            background-color: lightgray;
            font-size: 20px;
            color: white;
        }

        .YZ {
            POSITION: absolute;
            RIGHT: 10PX;
            TOP: 10PX;
            FONT-SIZE: 70PX;
            COLOR: #ff0000;
            line-height: 70px;
        }
    </style>
</head>
<body style="background-color: #f8f8f8;" ms-controller="PAGE">
    <div class="page__hd">
        <h1 class="page__title">班级信息</h1>
    </div>
    <div class="page__bd">
        <div class="weui-cells__title">班级信息 <span style="color: blue; float: right" id="setQQ">设置班级QQ群</span>  </div>
        <div class="weui-cells">
            <div class="weui-cell">
                <div class="weui-cell__bd">
                    <p>所在院系</p>
                </div>
                <div class="weui-cell__ft">{{bjxsdata[0].xbmc}}</div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__bd">
                    <p>专业</p>
                </div>
                <div class="weui-cell__ft">{{bjxsdata[0].zymc}}</div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__bd">
                    <p>班级名称</p>
                </div>
                <div class="weui-cell__ft">{{bjmodel.bj}}</div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__bd">
                    <p>班级QQ群</p>
                </div>
                <div class="weui-cell__ft">{{bjmodel.bjqq}}</div>
            </div>
            <div class="weui-cells__title">班级学生信息 <span style="float:right">注册情况</span> </div>
            <div class="weui-cells">
              
                <a class="weui-cell weui-cell_access"  ms-repeat-item="bjxsdata" ms-attr-href="UI_XSINFO.html?xh={{item.xh}}" >
                    <div class="weui-cell__hd">
                        <img src="/ViewMob/images/tx1.gif" alt="" style="width: 20px; margin-right: 5px; display: block"></div>
                    <div class="weui-cell__bd">
                        <p>{{item.xm}}{{item.xh}}</p>
                    </div>
                    <div class="weui-cell__ft">{{item.sfzc=='1'?"是":"否"}}</div>
                </a>
            </div>

        </div>

    </div>
      <div class="js_dialog" id="divqq" style="display: none;">
            <div class="weui-mask"></div>
            <div class="weui-dialog" style="width: 96%; max-width: 1000px">
                <div class="weui-dialog__hd">
                    <strong class="weui-dialog__title">班级QQ群<br />
                    </strong>
                </div>

                <div class="weui-dialog__bd" style="padding-left: .6em; padding-right: .6em;">
                    <div class="weui-cells weui-cells_form">
                        <div class="weui-cell">
                            <div class="weui-cell__hd">
                                <label class="weui-label">QQ群号码</label>
                            </div>
                            <div class="weui-cell__bd">
                                <input class="weui-input" type="number" pattern="^(([1-9]\d{0,9})|0)(\.\d{1,2})?$" id="bjqq" placeholder="请输入助QQ群号码" >
                            </div>
                        </div>
                       
                    </div>
                </div>
                <div class="weui-dialog__ft">
                    <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_default close" id="closeqq">取消</a>
                    <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_primary close" ms-click="setqq()">确认</a>
                </div>
            </div>
        </div>
    <script src="/ViewMob/js/zepto.min.js"></script>
    <script src="/ViewMob/js/weui.min.js"></script>
    <script src="/ViewMob/js/avalon1.47.js"></script>
    <script src="/ViewMob/js/ComFunJS.js"></script>

    <script type="text/javascript" class="searchbar js_show">
        var model = avalon.define({
            $id: "PAGE",
            userdata: {},
            bjxsdata: [],
            bjmodel: {},
            setqq: function () {
                $.getJSON("/API/VIEWAPI.ashx?Action=Commanage_UPDATEQQ&r=" + Math.random(), { bj: model.userdata.bj, bjqq: $("#bjqq").val() }, function (resultData) {
                    if (resultData.ErrorMsg == "") {
                        model.bjmodel.bjqq = $("#bjqq").val();
                        location.reload();
                    }
                });
            }
        })
        avalon.ready(function () {
            model.userdata = JSON.parse(ComFunJS.getCookie('userdata'));
            $.getJSON("/API/VIEWAPI.ashx?Action=Commanage_GETBJXX&r=" + Math.random(), { bj: model.userdata.bj }, function (resultData) {
                if (resultData.ErrorMsg == "") {
                    model.bjxsdata = resultData.Result;
                    model.bjmodel = resultData.Result1;

                }
            });
            var $divqq = $('#divqq');
            $('#setQQ').on('click', function () {
                $divqq.fadeIn(200);
            });            $('#closeqq').on('click', function () {
                $divqq.fadeOut(200);
            });

        })
    </script>
</body>
</html>
